module.exports = function (app) {
    const { router, middleware } = app;
    const prefix = "/api/person-certificates";
   

    const controller = app.controller.personCertificate;

    router.get(prefix + "/list", controller.list);

    router.post(prefix + "/create", middleware.auth(), controller.create);

    router.post(prefix + "/:id/update", middleware.auth(), controller.update);

    router.post(prefix + "/:id/delete", middleware.auth(), controller.delete);


    router.post(prefix + "/bindPersonalCertificate", middleware.auth(), controller.bindPersonalCertificate);

};